package com.example.tellwin.mine.bean;

import androidx.annotation.NonNull;

/**
 * @author : LinZePeng
 * @date : 2020/12/2
 * @Describe ：
 **/
public class SubjectBean implements CharSequence{
    private String subjectId;
    private String subjectName;

    public String getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(String subjectId) {
        this.subjectId = subjectId;
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    @Override
    public int length() {
        return subjectName.length();
    }

    @Override
    public char charAt(int index) {
        return subjectName.charAt(index);
    }

    @NonNull
    @Override
    public CharSequence subSequence(int start, int end) {
        return subjectName.subSequence(start ,end);
    }

    @NonNull
    @Override
    public String toString() {
        return subjectName;
    }
}
